package com.bwie.common.remote.system;

import com.bwie.common.constants.ServerNameConstants;
import com.bwie.common.domain.User;
import com.bwie.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author：ShenJiaFeng
 * @Package：com.bwie.common.remote.system
 * @Project：zg6_week11
 * @name：RemoteSystemService
 * @Date：2024/4/25 9:28
 */
@FeignClient(
        name = ServerNameConstants.SYSTEM_NAME,
        path = "/user"
)
public interface RemoteSystemService {
    @PostMapping("/findByUserName")
    public Result<User> findByUserName(@RequestParam String userName);
}
